package com.poi.jms;

import javax.jms.Destination;

import org.springframework.jms.core.JmsTemplate;
public class QueueMessageProducer {
	 private JmsTemplate template;

		private Destination destination;

	    public void sendMsg(String msg){
	        	template.convertAndSend(destination, new TestMessage(msg));
	    }
	    
		public void setTemplate(JmsTemplate template) {
			this.template = template;
		}

		public void setDestination(Destination destination) {
			this.destination = destination;
		}
}
